#ifndef WIDGET_H
#define WIDGET_H

#include <QDialog>
#include "cdevicectrl.h"
#include "credundance.h"
#include "global.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QDialog
{
    Q_OBJECT

public:
    explicit MainWindow(QDialog *parent = 0);
    ~MainWindow();

protected:
    void paintEvent(QPaintEvent *);

private:
    Ui::MainWindow *ui;

    CDeviceCtrl *pDevCtl;
    CRedundance *pBackup;

private slots:
    void on_StopCapture_clicked();
    void on_StartCapture_clicked();
};

#endif // WIDGET_H
